<div >
    <form class="form-horizontal" role="form" novalidate name="stForm" ng-switch on="translate.timeTypeCode.timeTypeCode">
        <div class="form-ctrl md-whiteframe-z1">
            <div class="form-search" style="height:170px;" ng-class="{true: 'shou'}[shoumun==0]" >
                <div>
                    <label style="width:70px">省公司</label>
                    <md-select multiple ng-model="translate.provinceCode" >
                        <md-select-label>
                            {{translate.provinceCode.length ? _getNames(translate.provinceCode,'provinceName',provinces) :'全部'}}
                        </md-select-label>
                        <md-option ng-value="" ng-click="_checkAll(translate,'provinceCode')">全部</md-option>
                        <md-option ng-value="item" ng-repeat="item in provinces">{{item.provinceName}}</md-option>
                    </md-select>
                </div>
      <!--           <div>
                    <label style="">省份</label>
                    <md-select  ng-model="translate.provinceCode" placeholder = '全国'>
                        <md-option value="" >全国</md-option>
                        <md-option ng-value="province.provinceCode" ng-repeat="province in provinces">{{province.provinceName}}</md-option>
                    </md-select>
                </div> -->
                <div>
                    <label style="width:70px">渠道</label>
                    <md-select  multiple ng-model="translate.tradeTypeCode" ng-click = 'queryBusiness()'>
                        <md-select-label>
                            {{translate.tradeTypeCode.length ? _getNames(translate.tradeTypeCode,'businessLineName',businessList):'全部'}}
                        </md-select-label>
                        <md-option ng-value="" ng-click="_checkAll(business,'businessCode')">全部</md-option>
                        <md-option ng-value="business" ng-repeat="business in businessList">{{business.businessLineName}}</md-option>
                    </md-select>
                </div>
                <div>
                    <label style="">账期</label>
                    <md-select ng-model="translate.timeTypeCode">
                        <md-select-label >
                            {{translate.timeTypeCode ? translate.timeTypeCode.timeTypeName :'日'}}
                        </md-select-label>
                        <md-option ng-value="item" ng-repeat="item in timeTypes" >{{item.timeTypeName}}</md-option>
                    </md-select>
                </div>
                <input-quarter-group ng-switch-when="4" name ='quarter' start-time ='translate.year.startTime' end-time ='translate.year.endTime' ></input-quarter-group>

                <div ng-if=" translate.timeTypeCode.timeTypeCode !== '4'">
                    <md-input-container flex>
                        <label >开始时间</label>
                        <input name="dateStartTime" type="week"  end-time="translate.endTime" ng-model="translate.startTime"  ng-switch-default required>
                        <input name="monthStartTime" time-validate ='month' ng-model="translate.startTime"  end-time="translate.endTime" type="month" ng-switch-when="3" required>
                         <div ng-messages="stForm.monthStartTime.$error">
                          <div ng-message="date">请正确输入时间</div>
                          <div ng-message="time-error">{{errorInfo.startTime[0]}}</div>
                           <div ng-message="too-great">{{errorInfo.startTime[1]}}</div>
                        </div>
                    </md-input-container >
                </div>
                <div ng-if="translate.timeTypeCode.timeTypeCode !== '4'">
                    <md-input-container flex>
                        <label>结束时间</label>
                        <input name="dateEndTime" type = 'week' ng-model="translate.endTime"  start-time="translate.startTime" ng-switch-default  required>
                        <input name="monthEndTime" time-validate ='month' ng-model="translate.endTime"  type="month" start-time="translate.startTime" ng-switch-when="3" required>
                         <div ng-messages="stForm.monthEndTime.$error">
                          <div ng-message="date">请正确输入时间</div>
                          <div ng-message="time-error">{{errorInfo.startTime[0]}}</div>
                           <div ng-message="too-great">{{errorInfo.startTime[1]}}</div>
                        </div>
                    </md-input-container >
                </div>
            </div>
            <i class="glyphicon glyphicon-chevron-up shrinkage" ng-show = 'flagObj&&!stForm.$invalid' ng-click="shoumun=!shoumun"></i>
            <md-button ng-click="queryAllChannel()" ng-disabled= "stForm.$invalid" ng-click="shoumun==1?shoumun=0:shoumun=1" class="md-fab md-primary md-hue-1" aria-label="Profile">
                <i class="glyphicon glyphicon-arrow-down" style="margin-top:28px;" ng-show="shoumun==0"></i>
                <i class="glyphicon glyphicon-search" ng-show="shoumun==1"></i>
            </md-button>
        </div>
    </form>
    <div class="table-info"  >
        <div id="operation" style='height:550px;padding-bottom:20px'></div>
    </div>
</div>
